package com.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 *
 * @author
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class ApiApplication {
//    @Autowired
//    public IDataInitService service;
//    @Autowired
//    private static IRuleItemService ruleItemService;

    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(ApiApplication.class, args);
        System.out.println("                       (♥◠‿◠)ﾉﾞ  启动成功   ლ(´ڡ`ლ)ﾞ                        \n" +
                " .-----.   .-----.  .--------------.  .--------------.  .-----.   .-----.   \n" +
                " |     |   |     |  |              |  |              |  |      \\  |     |  \n" +
                " |     |   |     |  |    .---------'  |    .---------'  |       \\ |     |  \n" +
                " |     |   |     |  |    |            |    |            |        \\|     |  \n" +
                " |     ’---‘     |  |    ’_________.  |    |            |         '     |  \n" +
                " |               |  |              |  |    |            |               |   \n" +
                " |     .---.     |  '---------.    |  |    |            |     .         |  \n" +
                " |     |   |     |            |    |  |    |            |     |\\        |  \n" +
                " |     |   |     |  ._________'    |  |    '---------.  |     | \\       |  \n" +
                " |     |   |     |  |              |  |              |  |     |  \\      |  \n" +
                " '_____'   '_____'  '______________'  ‘______________’  '_____'   '_____'  ");
//        System.out.println(ApiConfig.getDataNews());
////        JSONObject jo = new JSONObject();
////        jo.put("elementId", 3);
////        jo.put("datCol", 3);
////        jo.put("val", 34);
////        Map<String, JSONObject> map = new HashMap<>();
////        map.put("3_3", jo);
////        ApiConfig.setDataNews(map);
////        ApiConfig.initDataNews();
////        ruleItemService.initDevNews();
//        System.out.println(ApiConfig.getDataNews());
    }
}
